package com.example.method2;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @program: springboot_course
 * @description:
 * @author: ChenZhiXiang
 * @create: 2019-08-06 20:22
 **/
@Data
@Component
@PropertySource("classpath:czx.properties")
@ConfigurationProperties(prefix = "czx.wt")
public class DemoEntity {

    private String child1;

    private String child2;

}
